package com.inforich.orderManage.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import com.inforich.orderManage.domain.Booking;

/**
 * 预约Mapper接口
 *
 * @author hjm
 * @date 2022-10-26
 */
@Mapper
public interface BookingMapper extends BaseMapper<Booking> {

  /**
   * 分页列表
   */
  Page<Booking> pageBooking(Page<Booking> page, @Param("map") Map<String, Object> map);

  /**
   * 列表
   */
  List<Booking> listBooking(@Param("map") Map<String, Object> map);

  /**
   * 最新预约单
   */
  List<Booking> listLastBooking(@Param("map") Map<String, Object> map);

  Booking getLastBookingByProjectId(String projectId);

  Booking selectBookingById(String id);

  int insertBooking(Booking booking);
}
